package com.lanhe.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lanhe.order.domain.LhOrdersKayuLog;
import com.lanhe.order.mapper.LhOrdersKayuLogMapper;
import com.lanhe.order.service.ILhOrdersKayuLogService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * 卡鱼订单回调日志表(LhOrdersKayuLog)表服务实现类
 *
 * @author zhanggl
 * @since 2023-12-22 18:01:05
 */
@Service
public class LhOrdersKayuLogServiceImpl extends ServiceImpl<LhOrdersKayuLogMapper, LhOrdersKayuLog> implements ILhOrdersKayuLogService {

	@Autowired
	private LhOrdersKayuLogMapper ordersKayuLogMapper;

	@Override
	public void insertOrdersKayuLog (LhOrdersKayuLog lhOrdersKayuLog) {

		lhOrdersKayuLog.setCreateTime(new Date());
		ordersKayuLogMapper.insert(lhOrdersKayuLog);
	}

	@Override
	public void updateOrdersKayuLog (LhOrdersKayuLog lhOrdersKayuLog) {
		ordersKayuLogMapper.updateById(lhOrdersKayuLog);
	}
}

